package com.order.feign;

import com.common.common.BaseResponse;
import com.order.vo.Business;
import com.order.vo.Store;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(name="emms-store-service" ,fallback = FeignFallback.class)
public interface StoreFeignService {

    @RequestMapping("/store/{id}")
    BaseResponse<Store>  SearchFoodById(@PathVariable("id") Integer id);

    @RequestMapping("/business/{id}")
    BaseResponse<Business>  queryById(@PathVariable("id") Integer id);

    @GetMapping("/config/SentinelFeign")
    Integer FeignTriggerSentinel();

}
